<?php

namespace maotool\src\test;

use maotool\log\Console;
use maotool\src\test\controller\SystemApplication;
use maotool\util\ControllerUtil;
use PHPUnit\Framework\TestCase;

class MaoToolApplicationTest extends TestCase
{

    public function testIndex()
    {
        $log_time_start = microtime(true);
        $application = SystemApplication::main([1,2,3,4]);
        $application->exit();
        Console::debug('请求加载用时：' . number_format(microtime(true) - $log_time_start, 10) . ' 秒。');
        $lines = Console::$lines;
        foreach ($lines as $line) {
            echo json_encode($line["ages"], JSON_UNESCAPED_UNICODE) . "\n";
        }
        $this->assertTrue(true);
    }

}